package com.yg.entity.singleEntity;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 对应sheet03，此表为教师挂职表
 * 注意！此表的id和教师表的id是一个id
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TeacherAppoint对象", description = "对应sheet03，此表为教师挂职表注意！此表的id和教师表的id是一个id")
public class TeacherAppoint implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教师挂职id，和教师id是一个")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "挂职单位")
    private String temporaryWorkUnit;

    @ApiModelProperty(value = "挂职岗位")
    private String temporaryJobs;

    @DateTimeFormat("yyyy-MM-dd")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat("yyyy-MM-dd")
    private String endTime;

    @ApiModelProperty(value = "成效")
    private String results;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
